0 Prolog
↳1 UndefinedPredicateHandlerProof (⇒, 0 ms)
↳2 Prolog
↳3 PrologToPiTRSProof (⇒, 46 ms)
↳4 PiTRS
↳5 DependencyPairsProof (⇔, 136 ms)
↳6 PiDP
↳7 DependencyGraphProof (⇔, 0 ms)
↳8 TRUE
query_in_g(.(C1, .(D1, .(C2, .(D2, []))))) → U1_g(C1, D1, C2, D2, density_in_gg(C1, D1))
density_in_gg(C, D) → U7_gg(C, D, pop_in_ga(C, P))
pop_in_ga(china, 8250) → pop_out_ga(china, 8250)
pop_in_ga(india, 5863) → pop_out_ga(india, 5863)
pop_in_ga(ussr, 2521) → pop_out_ga(ussr, 2521)
pop_in_ga(usa, 2119) → pop_out_ga(usa, 2119)
pop_in_ga(indonesia, 1276) → pop_out_ga(indonesia, 1276)
pop_in_ga(japan, 1097) → pop_out_ga(japan, 1097)
pop_in_ga(brazil, 1042) → pop_out_ga(brazil, 1042)
pop_in_ga(bangladesh, 750) → pop_out_ga(bangladesh, 750)
pop_in_ga(pakistan, 682) → pop_out_ga(pakistan, 682)
pop_in_ga(w_germany, 620) → pop_out_ga(w_germany, 620)
pop_in_ga(nigeria, 613) → pop_out_ga(nigeria, 613)
pop_in_ga(mexico, 581) → pop_out_ga(mexico, 581)
pop_in_ga(uk, 559) → pop_out_ga(uk, 559)
pop_in_ga(italy, 554) → pop_out_ga(italy, 554)
pop_in_ga(france, 525) → pop_out_ga(france, 525)
pop_in_ga(phillipines, 415) → pop_out_ga(phillipines, 415)
pop_in_ga(thailand, 410) → pop_out_ga(thailand, 410)
pop_in_ga(turkey, 383) → pop_out_ga(turkey, 383)
pop_in_ga(egypt, 364) → pop_out_ga(egypt, 364)
pop_in_ga(spain, 352) → pop_out_ga(spain, 352)
pop_in_ga(poland, 337) → pop_out_ga(poland, 337)
pop_in_ga(s_korea, 335) → pop_out_ga(s_korea, 335)
pop_in_ga(iran, 320) → pop_out_ga(iran, 320)
pop_in_ga(ethiopia, 272) → pop_out_ga(ethiopia, 272)
pop_in_ga(argentina, 251) → pop_out_ga(argentina, 251)
U7_gg(C, D, pop_out_ga(C, P)) → U8_gg(C, D, P, area_in_ga(C, A))
area_in_ga(china, 3380) → area_out_ga(china, 3380)
area_in_ga(india, 1139) → area_out_ga(india, 1139)
area_in_ga(ussr, 8708) → area_out_ga(ussr, 8708)
area_in_ga(usa, 3609) → area_out_ga(usa, 3609)
area_in_ga(indonesia, 570) → area_out_ga(indonesia, 570)
area_in_ga(japan, 148) → area_out_ga(japan, 148)
area_in_ga(brazil, 3288) → area_out_ga(brazil, 3288)
area_in_ga(bangladesh, 55) → area_out_ga(bangladesh, 55)
area_in_ga(pakistan, 311) → area_out_ga(pakistan, 311)
area_in_ga(w_germany, 96) → area_out_ga(w_germany, 96)
area_in_ga(nigeria, 373) → area_out_ga(nigeria, 373)
area_in_ga(mexico, 764) → area_out_ga(mexico, 764)
area_in_ga(uk, 86) → area_out_ga(uk, 86)
area_in_ga(italy, 116) → area_out_ga(italy, 116)
area_in_ga(france, 213) → area_out_ga(france, 213)
area_in_ga(phillipines, 90) → area_out_ga(phillipines, 90)
area_in_ga(thailand, 200) → area_out_ga(thailand, 200)
area_in_ga(turkey, 296) → area_out_ga(turkey, 296)
area_in_ga(egypt, 386) → area_out_ga(egypt, 386)
area_in_ga(spain, 190) → area_out_ga(spain, 190)
area_in_ga(poland, 121) → area_out_ga(poland, 121)
area_in_ga(s_korea, 37) → area_out_ga(s_korea, 37)
area_in_ga(iran, 628) → area_out_ga(iran, 628)
area_in_ga(ethiopia, 350) → area_out_ga(ethiopia, 350)
area_in_ga(argentina, 1080) → area_out_ga(argentina, 1080)
U8_gg(C, D, P, area_out_ga(C, A)) → U9_gg(C, D, is_in_gg(D, /(*(P, 100), A)))
is_in_gg(X0, X1) → is_out_gg(X0, X1)
U9_gg(C, D, is_out_gg(D, /(*(P, 100), A))) → density_out_gg(C, D)
U1_g(C1, D1, C2, D2, density_out_gg(C1, D1)) → U2_g(C1, D1, C2, D2, density_in_gg(C2, D2))
U2_g(C1, D1, C2, D2, density_out_gg(C2, D2)) → U3_g(C1, D1, C2, D2, >_in_gg(D1, D2))
>_in_gg(X0, X1) → >_out_gg(X0, X1)
U3_g(C1, D1, C2, D2, >_out_gg(D1, D2)) → U4_g(C1, D1, C2, D2, is_in_ag(T1, *(20, D1)))
is_in_ag(X0, X1) → is_out_ag(X0, X1)
U4_g(C1, D1, C2, D2, is_out_ag(T1, *(20, D1))) → U5_g(C1, D1, C2, D2, T1, is_in_ag(T2, *(21, D2)))
U5_g(C1, D1, C2, D2, T1, is_out_ag(T2, *(21, D2))) → U6_g(C1, D1, C2, D2, <_in_aa(T1, T2))
<_in_aa(X0, X1) → <_out_aa(X0, X1)
U6_g(C1, D1, C2, D2, <_out_aa(T1, T2)) → query_out_g(.(C1, .(D1, .(C2, .(D2, [])))))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
query_in_g(.(C1, .(D1, .(C2, .(D2, []))))) → U1_g(C1, D1, C2, D2, density_in_gg(C1, D1))
density_in_gg(C, D) → U7_gg(C, D, pop_in_ga(C, P))
pop_in_ga(china, 8250) → pop_out_ga(china, 8250)
pop_in_ga(india, 5863) → pop_out_ga(india, 5863)
pop_in_ga(ussr, 2521) → pop_out_ga(ussr, 2521)
pop_in_ga(usa, 2119) → pop_out_ga(usa, 2119)
pop_in_ga(indonesia, 1276) → pop_out_ga(indonesia, 1276)
pop_in_ga(japan, 1097) → pop_out_ga(japan, 1097)
pop_in_ga(brazil, 1042) → pop_out_ga(brazil, 1042)
pop_in_ga(bangladesh, 750) → pop_out_ga(bangladesh, 750)
pop_in_ga(pakistan, 682) → pop_out_ga(pakistan, 682)
pop_in_ga(w_germany, 620) → pop_out_ga(w_germany, 620)
pop_in_ga(nigeria, 613) → pop_out_ga(nigeria, 613)
pop_in_ga(mexico, 581) → pop_out_ga(mexico, 581)
pop_in_ga(uk, 559) → pop_out_ga(uk, 559)
pop_in_ga(italy, 554) → pop_out_ga(italy, 554)
pop_in_ga(france, 525) → pop_out_ga(france, 525)
pop_in_ga(phillipines, 415) → pop_out_ga(phillipines, 415)
pop_in_ga(thailand, 410) → pop_out_ga(thailand, 410)
pop_in_ga(turkey, 383) → pop_out_ga(turkey, 383)
pop_in_ga(egypt, 364) → pop_out_ga(egypt, 364)
pop_in_ga(spain, 352) → pop_out_ga(spain, 352)
pop_in_ga(poland, 337) → pop_out_ga(poland, 337)
pop_in_ga(s_korea, 335) → pop_out_ga(s_korea, 335)
pop_in_ga(iran, 320) → pop_out_ga(iran, 320)
pop_in_ga(ethiopia, 272) → pop_out_ga(ethiopia, 272)
pop_in_ga(argentina, 251) → pop_out_ga(argentina, 251)
U7_gg(C, D, pop_out_ga(C, P)) → U8_gg(C, D, P, area_in_ga(C, A))
area_in_ga(china, 3380) → area_out_ga(china, 3380)
area_in_ga(india, 1139) → area_out_ga(india, 1139)
area_in_ga(ussr, 8708) → area_out_ga(ussr, 8708)
area_in_ga(usa, 3609) → area_out_ga(usa, 3609)
area_in_ga(indonesia, 570) → area_out_ga(indonesia, 570)
area_in_ga(japan, 148) → area_out_ga(japan, 148)
area_in_ga(brazil, 3288) → area_out_ga(brazil, 3288)
area_in_ga(bangladesh, 55) → area_out_ga(bangladesh, 55)
area_in_ga(pakistan, 311) → area_out_ga(pakistan, 311)
area_in_ga(w_germany, 96) → area_out_ga(w_germany, 96)
area_in_ga(nigeria, 373) → area_out_ga(nigeria, 373)
area_in_ga(mexico, 764) → area_out_ga(mexico, 764)
area_in_ga(uk, 86) → area_out_ga(uk, 86)
area_in_ga(italy, 116) → area_out_ga(italy, 116)
area_in_ga(france, 213) → area_out_ga(france, 213)
area_in_ga(phillipines, 90) → area_out_ga(phillipines, 90)
area_in_ga(thailand, 200) → area_out_ga(thailand, 200)
area_in_ga(turkey, 296) → area_out_ga(turkey, 296)
area_in_ga(egypt, 386) → area_out_ga(egypt, 386)
area_in_ga(spain, 190) → area_out_ga(spain, 190)
area_in_ga(poland, 121) → area_out_ga(poland, 121)
area_in_ga(s_korea, 37) → area_out_ga(s_korea, 37)
area_in_ga(iran, 628) → area_out_ga(iran, 628)
area_in_ga(ethiopia, 350) → area_out_ga(ethiopia, 350)
area_in_ga(argentina, 1080) → area_out_ga(argentina, 1080)
U8_gg(C, D, P, area_out_ga(C, A)) → U9_gg(C, D, is_in_gg(D, /(*(P, 100), A)))
is_in_gg(X0, X1) → is_out_gg(X0, X1)
U9_gg(C, D, is_out_gg(D, /(*(P, 100), A))) → density_out_gg(C, D)
U1_g(C1, D1, C2, D2, density_out_gg(C1, D1)) → U2_g(C1, D1, C2, D2, density_in_gg(C2, D2))
U2_g(C1, D1, C2, D2, density_out_gg(C2, D2)) → U3_g(C1, D1, C2, D2, >_in_gg(D1, D2))
>_in_gg(X0, X1) → >_out_gg(X0, X1)
U3_g(C1, D1, C2, D2, >_out_gg(D1, D2)) → U4_g(C1, D1, C2, D2, is_in_ag(T1, *(20, D1)))
is_in_ag(X0, X1) → is_out_ag(X0, X1)
U4_g(C1, D1, C2, D2, is_out_ag(T1, *(20, D1))) → U5_g(C1, D1, C2, D2, T1, is_in_ag(T2, *(21, D2)))
U5_g(C1, D1, C2, D2, T1, is_out_ag(T2, *(21, D2))) → U6_g(C1, D1, C2, D2, <_in_aa(T1, T2))
<_in_aa(X0, X1) → <_out_aa(X0, X1)
U6_g(C1, D1, C2, D2, <_out_aa(T1, T2)) → query_out_g(.(C1, .(D1, .(C2, .(D2, [])))))
QUERY_IN_G(.(C1, .(D1, .(C2, .(D2, []))))) → U1_G(C1, D1, C2, D2, density_in_gg(C1, D1))
QUERY_IN_G(.(C1, .(D1, .(C2, .(D2, []))))) → DENSITY_IN_GG(C1, D1)
DENSITY_IN_GG(C, D) → U7_GG(C, D, pop_in_ga(C, P))
DENSITY_IN_GG(C, D) → POP_IN_GA(C, P)
U7_GG(C, D, pop_out_ga(C, P)) → U8_GG(C, D, P, area_in_ga(C, A))
U7_GG(C, D, pop_out_ga(C, P)) → AREA_IN_GA(C, A)
U8_GG(C, D, P, area_out_ga(C, A)) → U9_GG(C, D, is_in_gg(D, /(*(P, 100), A)))
U8_GG(C, D, P, area_out_ga(C, A)) → IS_IN_GG(D, /(*(P, 100), A))
U1_G(C1, D1, C2, D2, density_out_gg(C1, D1)) → U2_G(C1, D1, C2, D2, density_in_gg(C2, D2))
U1_G(C1, D1, C2, D2, density_out_gg(C1, D1)) → DENSITY_IN_GG(C2, D2)
U2_G(C1, D1, C2, D2, density_out_gg(C2, D2)) → U3_G(C1, D1, C2, D2, >_in_gg(D1, D2))
U2_G(C1, D1, C2, D2, density_out_gg(C2, D2)) → >_IN_GG(D1, D2)
U3_G(C1, D1, C2, D2, >_out_gg(D1, D2)) → U4_G(C1, D1, C2, D2, is_in_ag(T1, *(20, D1)))
U3_G(C1, D1, C2, D2, >_out_gg(D1, D2)) → IS_IN_AG(T1, *(20, D1))
U4_G(C1, D1, C2, D2, is_out_ag(T1, *(20, D1))) → U5_G(C1, D1, C2, D2, T1, is_in_ag(T2, *(21, D2)))
U4_G(C1, D1, C2, D2, is_out_ag(T1, *(20, D1))) → IS_IN_AG(T2, *(21, D2))
U5_G(C1, D1, C2, D2, T1, is_out_ag(T2, *(21, D2))) → U6_G(C1, D1, C2, D2, <_in_aa(T1, T2))
U5_G(C1, D1, C2, D2, T1, is_out_ag(T2, *(21, D2))) → <_IN_AA(T1, T2)
query_in_g(.(C1, .(D1, .(C2, .(D2, []))))) → U1_g(C1, D1, C2, D2, density_in_gg(C1, D1))
density_in_gg(C, D) → U7_gg(C, D, pop_in_ga(C, P))
pop_in_ga(china, 8250) → pop_out_ga(china, 8250)
pop_in_ga(india, 5863) → pop_out_ga(india, 5863)
pop_in_ga(ussr, 2521) → pop_out_ga(ussr, 2521)
pop_in_ga(usa, 2119) → pop_out_ga(usa, 2119)
pop_in_ga(indonesia, 1276) → pop_out_ga(indonesia, 1276)
pop_in_ga(japan, 1097) → pop_out_ga(japan, 1097)
pop_in_ga(brazil, 1042) → pop_out_ga(brazil, 1042)
pop_in_ga(bangladesh, 750) → pop_out_ga(bangladesh, 750)
pop_in_ga(pakistan, 682) → pop_out_ga(pakistan, 682)
pop_in_ga(w_germany, 620) → pop_out_ga(w_germany, 620)
pop_in_ga(nigeria, 613) → pop_out_ga(nigeria, 613)
pop_in_ga(mexico, 581) → pop_out_ga(mexico, 581)
pop_in_ga(uk, 559) → pop_out_ga(uk, 559)
pop_in_ga(italy, 554) → pop_out_ga(italy, 554)
pop_in_ga(france, 525) → pop_out_ga(france, 525)
pop_in_ga(phillipines, 415) → pop_out_ga(phillipines, 415)
pop_in_ga(thailand, 410) → pop_out_ga(thailand, 410)
pop_in_ga(turkey, 383) → pop_out_ga(turkey, 383)
pop_in_ga(egypt, 364) → pop_out_ga(egypt, 364)
pop_in_ga(spain, 352) → pop_out_ga(spain, 352)
pop_in_ga(poland, 337) → pop_out_ga(poland, 337)
pop_in_ga(s_korea, 335) → pop_out_ga(s_korea, 335)
pop_in_ga(iran, 320) → pop_out_ga(iran, 320)
pop_in_ga(ethiopia, 272) → pop_out_ga(ethiopia, 272)
pop_in_ga(argentina, 251) → pop_out_ga(argentina, 251)
U7_gg(C, D, pop_out_ga(C, P)) → U8_gg(C, D, P, area_in_ga(C, A))
area_in_ga(china, 3380) → area_out_ga(china, 3380)
area_in_ga(india, 1139) → area_out_ga(india, 1139)
area_in_ga(ussr, 8708) → area_out_ga(ussr, 8708)
area_in_ga(usa, 3609) → area_out_ga(usa, 3609)
area_in_ga(indonesia, 570) → area_out_ga(indonesia, 570)
area_in_ga(japan, 148) → area_out_ga(japan, 148)
area_in_ga(brazil, 3288) → area_out_ga(brazil, 3288)
area_in_ga(bangladesh, 55) → area_out_ga(bangladesh, 55)
area_in_ga(pakistan, 311) → area_out_ga(pakistan, 311)
area_in_ga(w_germany, 96) → area_out_ga(w_germany, 96)
area_in_ga(nigeria, 373) → area_out_ga(nigeria, 373)
area_in_ga(mexico, 764) → area_out_ga(mexico, 764)
area_in_ga(uk, 86) → area_out_ga(uk, 86)
area_in_ga(italy, 116) → area_out_ga(italy, 116)
area_in_ga(france, 213) → area_out_ga(france, 213)
area_in_ga(phillipines, 90) → area_out_ga(phillipines, 90)
area_in_ga(thailand, 200) → area_out_ga(thailand, 200)
area_in_ga(turkey, 296) → area_out_ga(turkey, 296)
area_in_ga(egypt, 386) → area_out_ga(egypt, 386)
area_in_ga(spain, 190) → area_out_ga(spain, 190)
area_in_ga(poland, 121) → area_out_ga(poland, 121)
area_in_ga(s_korea, 37) → area_out_ga(s_korea, 37)
area_in_ga(iran, 628) → area_out_ga(iran, 628)
area_in_ga(ethiopia, 350) → area_out_ga(ethiopia, 350)
area_in_ga(argentina, 1080) → area_out_ga(argentina, 1080)
U8_gg(C, D, P, area_out_ga(C, A)) → U9_gg(C, D, is_in_gg(D, /(*(P, 100), A)))
is_in_gg(X0, X1) → is_out_gg(X0, X1)
U9_gg(C, D, is_out_gg(D, /(*(P, 100), A))) → density_out_gg(C, D)
U1_g(C1, D1, C2, D2, density_out_gg(C1, D1)) → U2_g(C1, D1, C2, D2, density_in_gg(C2, D2))
U2_g(C1, D1, C2, D2, density_out_gg(C2, D2)) → U3_g(C1, D1, C2, D2, >_in_gg(D1, D2))
>_in_gg(X0, X1) → >_out_gg(X0, X1)
U3_g(C1, D1, C2, D2, >_out_gg(D1, D2)) → U4_g(C1, D1, C2, D2, is_in_ag(T1, *(20, D1)))
is_in_ag(X0, X1) → is_out_ag(X0, X1)
U4_g(C1, D1, C2, D2, is_out_ag(T1, *(20, D1))) → U5_g(C1, D1, C2, D2, T1, is_in_ag(T2, *(21, D2)))
U5_g(C1, D1, C2, D2, T1, is_out_ag(T2, *(21, D2))) → U6_g(C1, D1, C2, D2, <_in_aa(T1, T2))
<_in_aa(X0, X1) → <_out_aa(X0, X1)
U6_g(C1, D1, C2, D2, <_out_aa(T1, T2)) → query_out_g(.(C1, .(D1, .(C2, .(D2, [])))))
QUERY_IN_G(.(C1, .(D1, .(C2, .(D2, []))))) → U1_G(C1, D1, C2, D2, density_in_gg(C1, D1))
QUERY_IN_G(.(C1, .(D1, .(C2, .(D2, []))))) → DENSITY_IN_GG(C1, D1)
DENSITY_IN_GG(C, D) → U7_GG(C, D, pop_in_ga(C, P))
DENSITY_IN_GG(C, D) → POP_IN_GA(C, P)
U7_GG(C, D, pop_out_ga(C, P)) → U8_GG(C, D, P, area_in_ga(C, A))
U7_GG(C, D, pop_out_ga(C, P)) → AREA_IN_GA(C, A)
U8_GG(C, D, P, area_out_ga(C, A)) → U9_GG(C, D, is_in_gg(D, /(*(P, 100), A)))
U8_GG(C, D, P, area_out_ga(C, A)) → IS_IN_GG(D, /(*(P, 100), A))
U1_G(C1, D1, C2, D2, density_out_gg(C1, D1)) → U2_G(C1, D1, C2, D2, density_in_gg(C2, D2))
U1_G(C1, D1, C2, D2, density_out_gg(C1, D1)) → DENSITY_IN_GG(C2, D2)
U2_G(C1, D1, C2, D2, density_out_gg(C2, D2)) → U3_G(C1, D1, C2, D2, >_in_gg(D1, D2))
U2_G(C1, D1, C2, D2, density_out_gg(C2, D2)) → >_IN_GG(D1, D2)
U3_G(C1, D1, C2, D2, >_out_gg(D1, D2)) → U4_G(C1, D1, C2, D2, is_in_ag(T1, *(20, D1)))
U3_G(C1, D1, C2, D2, >_out_gg(D1, D2)) → IS_IN_AG(T1, *(20, D1))
U4_G(C1, D1, C2, D2, is_out_ag(T1, *(20, D1))) → U5_G(C1, D1, C2, D2, T1, is_in_ag(T2, *(21, D2)))
U4_G(C1, D1, C2, D2, is_out_ag(T1, *(20, D1))) → IS_IN_AG(T2, *(21, D2))
U5_G(C1, D1, C2, D2, T1, is_out_ag(T2, *(21, D2))) → U6_G(C1, D1, C2, D2, <_in_aa(T1, T2))
U5_G(C1, D1, C2, D2, T1, is_out_ag(T2, *(21, D2))) → <_IN_AA(T1, T2)
query_in_g(.(C1, .(D1, .(C2, .(D2, []))))) → U1_g(C1, D1, C2, D2, density_in_gg(C1, D1))
density_in_gg(C, D) → U7_gg(C, D, pop_in_ga(C, P))
pop_in_ga(china, 8250) → pop_out_ga(china, 8250)
pop_in_ga(india, 5863) → pop_out_ga(india, 5863)
pop_in_ga(ussr, 2521) → pop_out_ga(ussr, 2521)
pop_in_ga(usa, 2119) → pop_out_ga(usa, 2119)
pop_in_ga(indonesia, 1276) → pop_out_ga(indonesia, 1276)
pop_in_ga(japan, 1097) → pop_out_ga(japan, 1097)
pop_in_ga(brazil, 1042) → pop_out_ga(brazil, 1042)
pop_in_ga(bangladesh, 750) → pop_out_ga(bangladesh, 750)
pop_in_ga(pakistan, 682) → pop_out_ga(pakistan, 682)
pop_in_ga(w_germany, 620) → pop_out_ga(w_germany, 620)
pop_in_ga(nigeria, 613) → pop_out_ga(nigeria, 613)
pop_in_ga(mexico, 581) → pop_out_ga(mexico, 581)
pop_in_ga(uk, 559) → pop_out_ga(uk, 559)
pop_in_ga(italy, 554) → pop_out_ga(italy, 554)
pop_in_ga(france, 525) → pop_out_ga(france, 525)
pop_in_ga(phillipines, 415) → pop_out_ga(phillipines, 415)
pop_in_ga(thailand, 410) → pop_out_ga(thailand, 410)
pop_in_ga(turkey, 383) → pop_out_ga(turkey, 383)
pop_in_ga(egypt, 364) → pop_out_ga(egypt, 364)
pop_in_ga(spain, 352) → pop_out_ga(spain, 352)
pop_in_ga(poland, 337) → pop_out_ga(poland, 337)
pop_in_ga(s_korea, 335) → pop_out_ga(s_korea, 335)
pop_in_ga(iran, 320) → pop_out_ga(iran, 320)
pop_in_ga(ethiopia, 272) → pop_out_ga(ethiopia, 272)
pop_in_ga(argentina, 251) → pop_out_ga(argentina, 251)
U7_gg(C, D, pop_out_ga(C, P)) → U8_gg(C, D, P, area_in_ga(C, A))
area_in_ga(china, 3380) → area_out_ga(china, 3380)
area_in_ga(india, 1139) → area_out_ga(india, 1139)
area_in_ga(ussr, 8708) → area_out_ga(ussr, 8708)
area_in_ga(usa, 3609) → area_out_ga(usa, 3609)
area_in_ga(indonesia, 570) → area_out_ga(indonesia, 570)
area_in_ga(japan, 148) → area_out_ga(japan, 148)
area_in_ga(brazil, 3288) → area_out_ga(brazil, 3288)
area_in_ga(bangladesh, 55) → area_out_ga(bangladesh, 55)
area_in_ga(pakistan, 311) → area_out_ga(pakistan, 311)
area_in_ga(w_germany, 96) → area_out_ga(w_germany, 96)
area_in_ga(nigeria, 373) → area_out_ga(nigeria, 373)
area_in_ga(mexico, 764) → area_out_ga(mexico, 764)
area_in_ga(uk, 86) → area_out_ga(uk, 86)
area_in_ga(italy, 116) → area_out_ga(italy, 116)
area_in_ga(france, 213) → area_out_ga(france, 213)
area_in_ga(phillipines, 90) → area_out_ga(phillipines, 90)
area_in_ga(thailand, 200) → area_out_ga(thailand, 200)
area_in_ga(turkey, 296) → area_out_ga(turkey, 296)
area_in_ga(egypt, 386) → area_out_ga(egypt, 386)
area_in_ga(spain, 190) → area_out_ga(spain, 190)
area_in_ga(poland, 121) → area_out_ga(poland, 121)
area_in_ga(s_korea, 37) → area_out_ga(s_korea, 37)
area_in_ga(iran, 628) → area_out_ga(iran, 628)
area_in_ga(ethiopia, 350) → area_out_ga(ethiopia, 350)
area_in_ga(argentina, 1080) → area_out_ga(argentina, 1080)
U8_gg(C, D, P, area_out_ga(C, A)) → U9_gg(C, D, is_in_gg(D, /(*(P, 100), A)))
is_in_gg(X0, X1) → is_out_gg(X0, X1)
U9_gg(C, D, is_out_gg(D, /(*(P, 100), A))) → density_out_gg(C, D)
U1_g(C1, D1, C2, D2, density_out_gg(C1, D1)) → U2_g(C1, D1, C2, D2, density_in_gg(C2, D2))
U2_g(C1, D1, C2, D2, density_out_gg(C2, D2)) → U3_g(C1, D1, C2, D2, >_in_gg(D1, D2))
>_in_gg(X0, X1) → >_out_gg(X0, X1)
U3_g(C1, D1, C2, D2, >_out_gg(D1, D2)) → U4_g(C1, D1, C2, D2, is_in_ag(T1, *(20, D1)))
is_in_ag(X0, X1) → is_out_ag(X0, X1)
U4_g(C1, D1, C2, D2, is_out_ag(T1, *(20, D1))) → U5_g(C1, D1, C2, D2, T1, is_in_ag(T2, *(21, D2)))
U5_g(C1, D1, C2, D2, T1, is_out_ag(T2, *(21, D2))) → U6_g(C1, D1, C2, D2, <_in_aa(T1, T2))
<_in_aa(X0, X1) → <_out_aa(X0, X1)
U6_g(C1, D1, C2, D2, <_out_aa(T1, T2)) → query_out_g(.(C1, .(D1, .(C2, .(D2, [])))))